#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

#include "LightPlayer.h"
#include "LightFile.h"


FILE* dump_file = NULL;

void DumpLine(const char* line){
	if(dump_file){
		fprintf_s(dump_file,line);
	}
}


int main(int argc, char *argv[]){


	if(argc > 1){

		dump_file = fopen("dump_out.txt", "wt");

		LightPlayer::LightFile file;
		file.open( argv[1] );
		file.DumpTags( DumpLine );

		fclose(dump_file);
		dump_file = NULL;
	}


	_getch();

	return 0;
}

